#include "../formatter.hpp"
#include <iostream>
using namespace logger;

int main()
{
    std::string name("logger1");
    std::string file = "messagetest.txt";
    std::string payload = "messsagetest.log";
    LogMsg msg(name, file, size_t(0), std::move(payload), LogLevel::value::DEBUG);
    Formatter fm("sg{}fsg%d{%H:%M:%S}%Tsdf%t%T[%p]%T[%c]%T%f:%l%T%m%n");
    std::string result;


    fm.parsePattern();
    result = fm.format(msg);
    std::cout << result << std::endl;
    return 0;
}